﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using wUniAppPCL.Loacalization;

namespace wUniAppPCL
{
  public enum wMessageDlgResultEnum { OK, Cancel, Yes, No };
  public enum wMessageDlgTypeEnum { OK, YesNo };

  public interface IwBaseMessage
  {
    Task<wMessageDlgResultEnum> Show(string message, wMessageDlgTypeEnum type, string title = "");
  }

  public abstract class wBaseMessage : IwBaseMessage
  {
    public wBaseMessage()
    {
      txYes = Resources.Yes;
    }
    public abstract Task<wMessageDlgResultEnum> Show(string message, wMessageDlgTypeEnum type, string title = "");

    public string txYes { get; set; }
    public string txNo { get; set; }
    public string txOK { get; set; }
    public string txCancel { get; set; }

  }
}
